#ifndef __MY_SHARED_MEMORY__
#define __MY_SHARED_MEMORY__

#define SHARED_MEM_START 0x400000
#define BUFFER_LEN 1024

struct sharedMem{
   char locked;
   int posX;
   int posY;
   unsigned int sek;
   unsigned int fileAdress;
   unsigned char stdIn[BUFFER_LEN];
   unsigned char stdOut[BUFFER_LEN];
};

int getPosX();
int getPosY();
void setPosX(int posX);
void setPosY(int posY);
void clearScreen();

#define WAIT_UNTIL_UNLOCK while(smem->locked == 1){}

#endif
